﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace creat_menu
{
    class Menu
    {
        public void menu()
        {
            int B=0;
            do
            {
                
                Console.WriteLine("1.Cong hai so");
                Console.WriteLine("2.Tru hai so");
                Console.WriteLine("3.nhan hai so");
                Console.WriteLine("4.chia hai so");
                Console.WriteLine("0.thoat chuong trinh");
                Console.Write("nhap lua chon cua:");
                int A = Convert.ToInt16(Console.ReadLine());
                switch (A)
                {
                    case 1:
                        Console.WriteLine("chon chuc nang 1");
                        
                    break;
                    case 2:
                    Console.WriteLine("chon chuc nang 2");
                    break;
                    case 3:
                    Console.WriteLine("chon chuc nang 3");
                    break;
                    case 4:
                    Console.WriteLine("chon chuc nang 4");
                    break;
                    case 0:
                    Console.WriteLine("thoat");
                    Environment.Exit(0);
                    break;
                    default:
                    Console.WriteLine("ban chon chuc nang nao");
                    break;
                       
                }
            }
            while(B==0);
        }
        
        
    }
}
